﻿using NodeCanvas.Framework;

namespace Yoozoo.Gameplay.Liberty.AI.Node
{
    public class ReturnCarStatusFailureAction : CarBaseNode
    {
        public BBParameter<CarStatus> carStatus = CarStatus.PathControl;

        protected override void OnUpdate()
        {
            if (_carEntity && (_carEntity.data.carStatus & carStatus.value) == 0)
            {
                EndAction(false);
            }
        }
    }
}